package com.refactor.practice.movie;

/**
 * @Desc: 普通类型
 * @Author: zoupinluowei@qianxin.com
 * @Date: 2024/9/6 21:45
 * @Since: 2.2.0
 */
public class RegularMovieType extends AbstractMovieType {


    /**
     * 魔法值问题缺少具体的业务含义，暂保留
     */


    @Override
    public double getAmount(int dayRented) {
        return 2 + (dayRented > 2 ? (dayRented - 2) * 1.5 : 0);
    }

    @Override
    public int getPoints(int dayRented) {
        return 1;
    }
}
